<script type="text/javascript">
function updateBody(tabId, page) {
    document.getElementById(selectedTab).setAttribute("class", "unselected");
    tab = document.getElementById(tabId)
    tab.setAttribute("class", "selected");
    selectedTab = tabId;
    iframe = document.getElementById("myframe");
    iframe.src = encodeURIComponent(tab.getAttribute("value")).replace(/%2F/g, '/');
}
function init(tabId){
        updateBody(tabId);
        updateViewport();

        window.onresize = updateViewport;
}

function updateViewport(){
         var viewportheight;

         // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight

         if (typeof window.innerWidth != 'undefined')
         {
              viewportheight = window.innerHeight
         }

        // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

         else if (typeof document.documentElement != 'undefined'
             && typeof document.documentElement.clientWidth !=
             'undefined' && document.documentElement.clientWidth != 0)
         {
               viewportheight = document.documentElement.clientHeight
         }
        // older versions of IE
         else
         {
               viewportheight = document.getElementsByTagName('body')[0].clientHeight
         }

        iframe = document.getElementById("myframe");
        iframe.style.height = (viewportheight-30)+'px';
}
var selectedTab = "tab1"
</script>

</head>

<body onload="init('tab1');">

<h1><a id="hudson_link" href="#"></a></h1>
<h2><a id="zip_link" href="#">Zip</a></h2>

<ul id="tabnav">
    <script type="text/javascript">document.getElementById("hudson_link").innerHTML="Back to testJob";</script>
    <script type="text/javascript">document.getElementById("hudson_link").onclick = function() { history.go(-1); return false; };</script>
    <script type="text/javascript">document.getElementById("zip_link").href="*zip*/HTML_5f20Report_2fjavascript_3aalert_281_29.zip";</script>
</ul>
<div>
    <iframe id="myframe" height="100%" width="100%" frameborder="0"></iframe>
</div>

</body>
</html>